const { ipcRenderer } = require("electron");

window.addEventListener("DOMContentLoaded", () => {
  const btn = document.getElementById("btn");
  btn.addEventListener("click", () => {
    console.log("点击了按钮");
    ipcRenderer.send("open-new-window");
  });
});
